package com.kwok.cloud.student.application.openfeign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 1.导入两个依赖
 * 2.OpenFeign 远程调用接口，写在调用方
 */
@FeignClient("class-server")
public interface OpenFeignRemoteCls {

    @GetMapping("/class/get")
    String getCls(@RequestParam("sname") String sname);

}
